package vip.xiaonuo.pm.modular.project.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import vip.xiaonuo.common.param.DeleteByIdParam;
import vip.xiaonuo.pm.modular.project.entity.PmProjectTypeEntity;
import vip.xiaonuo.pm.modular.project.param.PmProjectTypeAddParam;
import vip.xiaonuo.pm.modular.project.param.PmProjectTypeEditParam;

import java.util.List;

/**
 * <p>
 * 项目类型 服务类
 * </p>
 *
 * @author xhs
 * @since 2025-06-04
 */
public interface PmProjectTypeService extends IService<PmProjectTypeEntity> {

    /**
     * 根据ID查询数据
     *
     * @param id 入参
     * @return PmProjectTypeEntity
     */
    PmProjectTypeEntity queryEntityById(String id);

    /**
     * 新增项目类型
     *
     * @param pmProjectTypeAddParam 入参
     */
    void add(PmProjectTypeAddParam pmProjectTypeAddParam);

    /**
     * 编辑项目类型
     *
     * @param pmProjectTypeEditParam 入参
     */
    void edit(PmProjectTypeEditParam pmProjectTypeEditParam);

    /**
     * 删除项目类型
     *
     * @param DeleteIdParamList 入参
     */
    void delete(List<DeleteByIdParam> DeleteIdParamList);

    /**
     * 获取项目类型树
     *
     * @return CommonResult<List<Tree<String>>>
     */
    List<Tree<String>> tree();
}
